const express=require('express');

let server=express();
server.listen(8080);

let r1=express.Router();
r1.get('/get/:a/:b',(req,res)=>{
	res.send('hai!哈喽')
	console.log(req.params)
})

r1.get('/b',(req,res)=>{
	res.send('yes!b!')
});

server.use('/r1',r1)